package cn.hwl.springframework.beans.factory.support;

import cn.hwl.springframework.beans.BeansException;
import cn.hwl.springframework.core.io.Resource;
import cn.hwl.springframework.core.io.ResourceLoader;



/**
 * @author :  HuangWL
 * @date :    2022/4/27 11:28
 * Simple interface for bean definition readers
 */
public interface BeanDefinitionReader {
    BeanDefinitionRegistry getRegistry();

    ResourceLoader getResourceLoader();

    void loadBeanDefinitions(Resource resource) throws BeansException;

    void loadBeanDefinitions(Resource... resources) throws BeansException;

    void loadBeanDefinitions(String location) throws BeansException;

    void loadBeanDefinitions(String... locations) throws BeansException;
}
